
module.exports = class extends think.Logic {
  getAction() {
    this.allowMethods = 'get';
    this.rules = {
      id: {
        string: true,
        required: true
      }
    };
  }
  delAction() {
    this.allowMethods = 'delete';
    this.rules = {
      id: {
        string: true,
        required: true
      }
    };
  }
  editAction() {
    this.allowMethods = 'post';
    this.rules = {
      id: {
        string: true,
        required: true
      }
    };
  }
};
